During his youth, he spent his time participating in the campaigns of his father Alp Arslan, along the latter's vizier Nizam al-Mulk.